package modelLayer;


/**
 * Owner class
 * @author Thomas Bonderup
 * @version 1.0.0
 */
public class Owner
{
    // instance variables
	private static int staticNr = 0;
	private int ownerNr;
	private String ownerName;
    private String address;
    private String phoneNumber;

	/**
     * Constructor for objects of class Owner
     */
    public Owner(String ownerName, String address, String phoneNumber)
    {
    	staticNr++;
    	ownerNr = staticNr;
        this.ownerName = ownerName;
        this.address = address;
        this.phoneNumber = phoneNumber;
    }
    
    public int getOwnerId() {
		return ownerNr;
	}

	public void setOwnerId(int ownerNr) {
		this.ownerNr = ownerNr;
	}

	public String getOwnerName() {
		return ownerName;
	}

	public void setOwnerName(String ownerName) {
		this.ownerName = ownerName;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getPhoneNumber() {
		return phoneNumber;
	}

	public void setPhoneNumber(String phoneNumber) {
		this.phoneNumber = phoneNumber;
	}

    /**
     * Methods goes here 
     */
    public void printInformation()
    {
        System.out.println("#The owner is: "+ownerName);
        System.out.println("#And is living at: "+address);
        System.out.println("#"+ownerName+" can be contacted at: "+phoneNumber);
    }
}
